﻿using System;
using System.Collections.Generic;
using System.Text;
using OgilvyOne.Model;
using OgilvyOne.DALFactory;

namespace OgilvyOne.BLL
{
    public class MemberPassBackBll
    {
        MemberPassBackFactory memberpassbackfactory = new MemberPassBackFactory();
        public bool add(MemberPassBackModel model)
        {
            return memberpassbackfactory.create().Add(model)>0;
        }
        public bool update(MemberPassBackModel model)
        {
            return memberpassbackfactory.create().Update(model);
        }
        public bool delete(int memberid)
        {
            return memberpassbackfactory.create().Delete(memberid);
        }
        public bool exist(int memberid)
        {
            return memberpassbackfactory.create().Exist(memberid);
        }
        public MemberPassBackModel getmodel(int memberid)
        {
            return memberpassbackfactory.create().Getmodel(memberid);
        }
    }
}
